{
    rules+: [
         {
            // 主机CPU负载高
            alert: 'NodeHighCpuLoad',
            annotations: {
                message: 'CPU负载 > 80%  当前值 = {{ $value }}  告警主机: {{ $labels.instance }}.',
                summary: 'Host high CPU load (instance {{ $labels.instance }})',
                runbook: $._config.runbook,
            },
            expr: |||
              100 - (avg by(instance) (rate(node_cpu_seconds_total{mode="idle"}[2m])) * 100) > 80
            |||,
            'for': '0m',
            labels: {
                severity: 'warning'
            },
        },
        {
            // CPU盗用率过高，CPU没有达到完成性能。
            alert: 'NodeCpuStealNoisyNeighbor',
            annotations: {
                message: 'CPU 实际不可用率 > 10%. 可能遭遇挖矿病毒，或该主机的实际性能不足.  当前值 = {{ $value }}  告警主机: {{ $labels.instance }}.',
                summary: 'Host CPU steal noisy neighbor (instance {{ $labels.instance }})',
                runbook: $._config.runbook,
            },
            expr: |||
              avg by(instance) (rate(node_cpu_seconds_total{mode="steal"}[5m])) * 100 > 10
            |||,
            'for': '0m',
            labels: {
                severity: 'warning'
            },
        },
    ],
}
